#!/bin/bash

eval $(xdotool getdisplaygeometry --shell)

#guake -e 'screen -ddr work'

win=$(xdotool search "Volume Control")
if [ -z "$win" ]; then
    pavucontrol &
    win=$(xdotool search --sync "Volume Control")
fi
#xdotool windowmove $win 0 0

height=$(xdotool getwindowgeometry $win | grep Geo | sed 's/.*x//')
xdotool windowmove $win 0 $(expr $HEIGHT - $height - 21)
